package exam.service.impl;

import exam.bean.ProjectLevel;
import exam.dao.ProjectLevelDao;
import exam.service.IProjectLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProjectLevelServiceImpl implements IProjectLevelService {
    @Autowired
    ProjectLevelDao projectLevelDao;
    @Override
    public List<ProjectLevel> selectInfo() {
        return projectLevelDao.selectInfo(null);
    }

    @Override
    public ProjectLevel selectInfoSingle(Map<String, Object> queryMap) {
        return projectLevelDao.selectInfo(queryMap).get(0);
    }

    @Override
    public int insertInfo(ProjectLevel projectLevel) {
        return projectLevelDao.insertInfo(projectLevel);
    }

    @Override
    public int updateInfo(ProjectLevel projectLevel) {
        return projectLevelDao.updateInfo(projectLevel);
    }

    @Override
    public int deleteInfo(int id) {
        return projectLevelDao.deleteInfo(id);
    }
}
